fixed howto function bug