There is another problem with this. When you hover over the city you see something like that:
Max. city size: 30
City size: 31
Citizens per turn: 1
Turns to advance: 19
I marked the buggy/confusing pieces of info. If your city maximum size is 30, it should never be higher, period. If you can't reach a next city level, then you should be notified that you will never do it, if you don't build more houses.