fix TypeError when there's no args