Problems with checkTokenPosition