fix getting params