fix: Remove infinite loop

One character between working and infinite loops ;)
style: some cleanup