fix bug in PM time overflow
closes issue #16