fixed a syntax issue
fixed an issue with the embedded ruby logic