small bug fix in engine 3