fixed canvas offset problem