Hi Brummbaer,
What you describe is not a bug, but intended behavior. The upgrading process of a building is finished when the player logs in, so if a player doesn't do that, the upgrade process will not stop, until the player logs in again. This can be a little bit inconvenient sometimes, but it is not a bug.