Fix min/max cost