fixed bug with cleaning canvas with no children attribute.