fixed bug - resource didn't handle null value