fixed sandbox bugs