Fix foot sensor cause wrong state