fixed canvas growing issue