fix StudyAccess check call (should really use higher types to prevent this)