Fixed 5 small bugs.