Fixing wrong order of error and notFound handler