I think this might be an issue with the engine itself. You could try running other Ren'Py games and see if they behave the same way.