Fixing pelican enable and disable mode functions