Fix local file loading