Select sample: remove var decl. as workaround of build tool limitation