Monkey patching gone wrong