fix bug loading