Fixes bug with text component for Canvas not being redrawn