Fixes for new lycheeJS APIs