fixed booleam duration bug