fix bubble going outside of level