Fix for bug OOIION-1023

This should fix the problem, but I wonder if there's a clearer way to do the get_process_constraints function