Fixed an empty(0) bug