fix midable bug