fix duplicate fx/idx