Bug fixes

Fixed some bugs involving the canvas, timeline, and custom layers.