Fixed unknown variable 'params' error.