fixed negative position component out of counds exceptions