fix infinit loop when engines do not have InputMode property