Fixed bug with UpdateOverlay