Fixed duplicate notebook entries and 'user_id no found' error.