fix issue with undefined params properties