fix bug in mark