Fix for https://github.com/astorm/Pulsestorm/issues/22#issuecomment-17904578