Patch 2

changed all "i++" into "++i", as proposed by nfkd