Can't say I have much experience with the issue... but there seems to be a lot of posts about it lately.
Take a look at http://www.gamesas.com/index.php?/topic/1143522-trying-to-create-new-hat-but-it-gets-an-odd-angle/ topic... might be of interest to you.