fixed bugs for parallax