Fix issue for elements with fixed position