fix bug on programs#index