Fixed bug by adding permissions