fixed typo in retrieveById methods