fixed spaces bug