Fix profile bug with file test.