fixed encoder pointer