fixing access control