Fix inv search and pos code to int conversion

Merged Macarena Meldi requested to merge fixSyncronize into 15.0

Merge request reports