fixed errors in scanactor