Fix strict mode compat

fix to not use reflection