Fixed bug with notAllowed variable