fixed misallocated curly bracket