Fixed a few issues in the CAN code.