fixed dismissal error but idk how???