fixed rulemachine, thank you fahadash on #c++