updated fixsel code