Fixes bug with semicolon present in lists