fixed stupid bug
some fixes