Fixed warning about visibility of field