fix buffer position bug, remove old comment