Fixed Syntax Error in scanFor helper method