minor fix to correct error plot