fixing unexpected keyword error when regenrating profile file