Fixes typo and braindead code.