fixed pos bug