Test with the production environment. If it works there, then it's a problem with class reloading that happens in the development environment.
Test with the production environment. If it works there, then it's a problem with class reloading that happens in the development environment.