Fix to pass variable in role directive