Why does this break the program?