fixes canvas bug so it doesnt keep transforming