Added checking property type before assigning value. If different then ignore.