Move element hiding fix