Fixed errors with brackets