Unfortunately it is too each to attach the wrong patient to a message, and therefore the wrong chart, especially if you do "something" else (refill, order) when looking at message, or even having highlighted a patient.
Bug, in my opinion.
Only work around: be careful!