fixes on isAllowed to stop notice