fixes #5807 Error when you refresh the Action Panel