fix bug method