bug fix: guided search would fails with max_swap > 0