Hotfix for memoryleak when rotation changes