Fixed method visibility change problem