That code does not use millis(). Show us how you are using millis() and we will show you what is wrong with it.
Also your code is...
a) Incomplete - post complete sketches or we cannot help.
b) Not posted inside [code][/code] tags - read the posting guidelines sticky.