Improved access control
Fix stupid crash on denied access