fixing the whitespace problem after hiding move