function bug fix

sorry, for mistake ;-)