fix bug in rebuild args