fixed warning of accessing static property