fixed event generation when start is 0, fixes #3