fixed a bug to make it reference to processInstanceId in showRecord