Fix for process synchronization