safety position fixed buffer bug