Fixing some bugs on the Contraints index

Now it's working!

Signed-off-by: Guillermo Hernandez <0w3w4u@gmail.com>