- Fixed issue #564 by resetting state to initial when no callback is performed in the return function.