Fixed some little bugs.