fixed bug not sending the correct size