fix for visibilities equals to null