Fix angular issues with ctools modal