FIX: when DEBUG is False, 500 error.