fix a bug in simditor