calcposition fix