removed bug where it went into an infinite loop because of the missing space