Fixed a bug with backward prefixed iteration

fixes #3