fixed APS -A -B issue