Fix a bug that caused excessive whtiespace