Fixed issue when adding new items on the tables, which avoided to select
them afterwards due to a misconversion of the id's received