Fixed issue where alerts won't autohide

There was an issue where the alerts won’t hide automatically. I am happy to announce that this issue is now fixed.