INTERNAL ERROR: Error in graph