Fighting with the compiler to set buffer as it sees it to be Nil