fix preview syntax check
change refs_decl structure