Solving row moving problems in library