fixed incorrect reference to self::getEnvironment() in Bucky