fixed initial modal issue