Removing the element of code which reproduces error