fixed bug on invetory page change!