Fix LogicInfo parsing for string logics
clean some code