Fix permisson registration