fix last commit and load data query on last view repository