Fixed bug with notifications permissions