Fixed bug keeping snes from stopping