Folding sometimes does not recognize end of function, and hides all functions below it

i have two instances in the same class where folding a function hides every function below it, even though those functions are not part of the function above.
here’s an example:
getWeatherPict unfolded (note all the functions, below it, which i have folded, to make the screen shot smaller)

getWeatherPict, folded (notice that all the code below is folded, and nothing appears):