Bug fixes for situation when data is written to the edge of buffer (used buffer read / write instead of primitive writes)