Prevented crash when no objects are saved