fix return path error in core loader