This fix nullpointer due to undefined "e" var