bug in encoder pin setter fixed