fix for scan API
Merge pull request #816 from andrzej-jankowski/scan_api_fix

Fix for scan API
Merge remote-tracking branch 'allegro/v2.0.0-rc2' into develop