Fix error in function, missing brackets