fix misstake added curly braces at wrong place