fix for character NA