What chip?
Can you post your whole code?
And post how your fuses are set. Either from the *.inc or in code or if you are using one of those programs that does it for you.