Fixed problem with permission