fix spaces and semicolons bug