Fix for param validity check