fix cost message issu in factory