[UI][CORE][DB] fixed horrible bug in removing thumbnails