Fix error when APS env doesn't exists.