Fixed shelved changes function