make #scrutinizerci happy and fix incompatible with the declared type