Fixed the size bug in mark()