corrected returned 'null' value from JSON responses