1. fixed uilayer clear crash
Merge pull request #27 from nutty898/master

fixed crash of uilayer clear