Fixed phongen distribution code