Why is my code disappearing?