Fixed removal of items

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>