Apm 2.6 ac 3.1.5 and neo 6m gps RTL Problem

Hello! i have an Apm 2.6 ac 3.1.5 and neo 6m gps and when hit RTL and comes abone the landing point instead to land, fly upward oposite. What is the problem do you think?