Corrected RSR segfault