fixes sample package (infinite loop)