Fixed bug on AGEB layer activation/deactivation