fixed weird bug, might be due to server local time