to fix bug