Fixed bug where incorrect vertex size was calculated