PRM segfaults fixed.