fixed inventory day issue