bug fixes

fixed some bugs
fixed secert area