Fixed security issues for Bob