fixed security bugs.