Fix canvas being too large briefly.