Trying to fix live 500 error