Fix direct access check