maskbuf fixed