fix bug in find top block; reset moved flag after moving