fixed handling of the default value of the visible property