fixed some buffer issues