bugfix, "if (gamma == null...)" instead of "if (gamma != null)"