Fixed an error with an empty instance.