Bad display after removal of a custom script