fixes two errors, that a json response is send if a none existing version is requested