patch to workaround the 1899 bug