fix invalid class params