Fixed bug in calculating the y position of checkbox centers