Fixed  access errors

Fixed issues with accessing classes,