fix a bug in modification