Why has that piece of code worked before?