fixed grif bug