Fixed various small bugs.