fixing the stupid lines of code lyx left out