[bugfix] do not cut the path when rotating