replace returned foreign keys 0 value with null value