Fixed bug with fields being protected instead of public