fixes #380 - Undefined alert message when an error occurs updating sandbox flag
fixes #365 - SandBox mode flag does not work