Fixed .app
return 500 on internal exception