bug when reverse flag is not explicitly set as false