Fix problem with variable module and array results