fixes bug with incorrect handling of plain literals