Renaming variables
Better function call
Remove faulty use of _ids
Typo
Fix wrong error messages