fix handling literal datatype