stopping canvas collapse