minor bugfixes and changed typo