fix bug: curr undefined