Fixed external entity loading