Fixed movement boundary issue. Index out of bounds exception when
removing rows.