Problems with custom graphs