Fixed sequence algorithm

Closes https://github.com/PistonDevelopers/rust-event/issues/50