[BUGFIX] Fix for the fatal error: Call to a member function enableFields() on a non-object