Poor programming and lack of adequate testing most likely.