Try to fix curly braces check