nullPointerException with adding lines fixed.