fixed #105 for multiple spaces