Fixed use same length as in buffer