Problem with custom graphs