Fixing bug on method visibility