Fixed a bug with removal of step listeners.