use abs position to fix #12