Fixed sandbox bugs.