fixbug for position