prevent 500 error