bug fix conveting string to map