fix an issue with debug positioning