utils.copy bug fix with 'null'