bugfix: min(dt) is used but shouldnt