Fix bug reporting errors