fix bug with double-load