fixed risky while loop
fixed another risky while loop
Merge pull request #74 from gawrysz/bugfix_refinement_primitives

fixed risky while loop