Fixed error in permissions