fix load and store issue in compiler