Fixed some realoading problems