Fixed state app for not existing object and return 404