duration bugfix