Fixed segfaults but now PRM not working, points not showing