Use getId() instead of get('id')