Fix canvas refresh on layer load