More correct GA logic code and one bugfix for AP dsng on the ground.