fix param not defined