Prevented exception which appears on edit item