Removed unnecessary whitespace and a bug