fix js bug on pos