fixed bug in load text