Fixed re-rendering container in canvas