Resolving errors in canvas and io libraries.