fix weird bug