Graph added, Application crashing