fix empty positions bug