Readded negative buffer check