fixed deputy select for #233