fixed display of canvas debug rectangle