fix issue where lapis was applying to many times, and AIOOB