fixed canvas layout issues