fix for metric data nil case