fix bug for if input hash keys are symbols