Solve some problems running on vs

Add the IsFirstTime property