Fixed proc_message_wait.