fix problem with null params