Fixed incorrect calculation of visible fields