Register permissions bug. Fixed