fix load from undefined variable