spaces problem solved