fixed compatibility bug on latest version of larval