fix stack overflow in MSET