fix sandbox errors