workaround for latte bug. fixes #265.