Fix remaining while loop element checks
Bump version to 1.0.12