Fix bug with sign permissions