Not a SCALAR reference at line 108