fix magic matching for 1.9.3