Fixed some silly security holes