fixed param reading bug