bugfix long term and braces deletion