fix for null value crashing charts