fix for null metadata attribute