fixed "Call to a member function settings() on a non-object" error