Unexpected } error fix