fixed memory leak in RV 4.0 (need a '' layer). weird behaviour with multiple layers (RV 3 is fine)