Curly bracket issue