bugfix in timeout