Workaround for issue 303.