Fix license and 500 error