Problem when I clean de ram in miui 9.5

I have a xiaomi Redmi 4x with miui 9.5 global Rom, when I started to use klwp all works fine, but I don't know why. now every time that I clean the ram the wallpapers start to go slowly and show some bugs. When I open an app then turn back to the home screen and I open again the global to open another app the global reload again and every time like this. I put a vidio to see my problem. Download the file and add .mp4 in the name for watch it