Fix setLayoutParams crashing other views