bug fix on $::clearView