fixing a bug with possibility to move wrong block