fixed bug in Buffer.server