Fixed issue 5270. Don't ask me how, I just clean up code and then it works! I think it was int overflow.