Syntax error, better place for entity list removal