Fix rule for collapseing spaces