add pro guard and fix black screen issue