data fix for canvas