Fixed bug that was preventing graphics layers from refreshing