Merge pull request #27 from nutty898/master

fixed crash of uilayer clear