Fixed getLastId misspelled method name