fix before load canvas