bugfix when drawing multiple scenes