Error in setting parameters fixed