fix bug in older versions