fixed potential indexing bug for dirrerent full parameters codes