Fixed amdefine dependency error