Improve error message in case of missing _id
Remove dynamic binding