Fixed issue with the params array