fix bug with assert
upd