Fix a logic bug about the stand time and sit time