Fixed accessibility exceptions not occurring for variable definitions