fix a possible error that may arrive at the time of building