Changing visibility attribute type to String