See above comment on how this code is here to deal with bugs and should not be removed