fix off-by-one px in chat