fixed task and invite modal issue