fixed issue 1783 again, thanks Dean Kleissas