Fixed bug reading.

For some reason, new bug insertion fails.

Need to fix bug editing.